package models

import "time"

type RepositoryPool struct {
	Id        int       `json:"id" db:"id"`
	Identity  string    `json:"identity" db:"identity"`
	Hash      string    `json:"hash" db:"hash"`
	Name      string    `json:"name" db:"name"`
	Ext       string    `json:"ext" db:"ext"`
	Size      int64     `json:"size" db:"size"`
	Path      string    `json:"path" db:"path"`
	CreatedAt time.Time `json:"created_at" db:"created_at" xorm:"created"`
	UpdatedAt time.Time `json:"updated_at" db:"updated_at" xorm:"updated"`
	DeletedAt time.Time `json:"deleted_at" db:"deleted_at" xorm:"deleted"`
}

func (r RepositoryPool) TableName() string {
	return "repository_pool"
}
